from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^register/$', views.RegisterView.as_view()),

    url(r'^usernames/(?P<username>[a-zA-Z0-9-_]{5,20})/count/$', views.UsernameCheckView.as_view()),
        # url(r'^mobiles/(?P<mobile>[1[345789]\d]{9})/count/$', views.MobileCheckView.as_view()),
        url(r'^mobiles/(?P<mobile>1[345789]\d{9})/count/$', views.MobileCheckView.as_view()),
            # /mobiles/(?P<mobile>1[3-9]\d{9})/count/
]